package com.mydesignpattern.beijing.decorator;

import com.mydesignpattern.beijing.decorator.dressed.SlapUpDressed;
import com.mydesignpattern.beijing.decorator.floor.WoodFloor;
import com.mydesignpattern.beijing.decorator.wall.WaterPaint;

public class Client {

    public static void main(String[] args) {
        House house = new WaterPaint(new WoodFloor(new SlapUpDressed(new MyHouse())));
        System.out.println("房价是："+house.countPrice());

    }

}
